package com.java1412.mapper;

import com.java1412.entity.Payment;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author java1412
 * @create 2022-08-29 16:07
 */
@Repository
public interface PaymentMapper {
    // 添加
    public int create(Payment payment);

    //查询     加上@Param注解，mapper中就可以采用#{}的方式把@Param注解括号内的参数进行引用
    public Payment getPaymentById(@Param("id") Long id);
}
